package com.thinkgem.jeesite.modules.sys.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;

/*
 * Created by jyy on 2016/10/21 0021.
 */

/**
 * 该controller 废弃
 */

@Controller
@RequestMapping(value = "${adminPath}/sys/product1")
public class ProductController {

    /**
     * 显示商品详情
     * @param productId
     * @param request
     * @return
     */
    @RequestMapping(value = "showProductDetail/{productId}")
    public ModelAndView showProductDetail(@PathVariable("productId") Integer productId,HttpServletRequest request){
        ModelAndView mav = new ModelAndView();
        ModelMap mm = mav.getModelMap();

        return mav;
    }

    /**
     * 更新商品信息
     * @param productId
     * @param request
     * @return
     */
    @RequestMapping(value = "updateProduct/{productId}")
    public ModelAndView updateProduct(@PathVariable("productId") Integer productId,HttpServletRequest request){
        ModelAndView mav = new ModelAndView();
        ModelMap mm = mav.getModelMap();

        return mav;
    }
}
